package day07;

import java.util.Scanner;

public class TestTwo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个数系统判定是否为回文数");
        int number = sc.nextInt();
        int a = number;
        int b;
        int newOne = 0;
        while (a != 0) {
            b = a % 10;
            a = a / 10;
            newOne = newOne * 10 + b;
        }
        if (newOne == number) {
            System.out.println(number + " 是回文数");
        } else {
            System.out.println(number + " 不是回文数");
        }
    }

}
